<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="{$uri}Public/Content/print.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        body { background: #FFF none;
        }
    </style>
    <script type="text/javascript" src="{$uri}Public/Content/jquery.js" charset="utf-8"></script>
    <script type="text/javascript" src="{$uri}Public/Content/jquery.poshytip.min.js" charset="utf-8"></script>

    <title>打印--采购订单</title>
</head>

<body>

    <div style="margin: 0 auto;width: 290mm;">
    <div class="print-page">
        <div id="printarea">
            <div class="orderprint">
                <div class="top">
                    <div class="logo" ><img src="{$uri}Public/Images/logo.png"/></div>
                    <div class="logo-title" style="text-align: center">采购订单</div>
                </div>
                <table class="buyer-info">
                    <tr>
                        <td >单号：{$billInfo['ref']}</td>
                        <td width="0"></td>
                        <td>供应商：{$billInfo['supplierName']}</td>
                    </tr>
                    <tr>
                        <td >交货地址：{$billInfo['dealAddress']}</td>
                        <td ></td>
                        <td>交货日期：{$billInfo['dealDate']}  </td>
                    </tr>
                    <tr>
                        <if condition="$billInfo['tel'] && $billInfo['fax']">
                            <td>电话/传真：{$billInfo['tel']}/{$billInfo['fax']}</td>
                            <else />
                            <td>电话/传真：{$billInfo['tel']?$billInfo['tel']:($billInfo['fax']?$billInfo['fax']:'')}</td>
                        </if>
                        <td></td>
                        <td>联系人：{$billInfo['contact']}</td>
                    </tr>

                    <tr>
                        <td>组织机构：{$billInfo['orgFullName']}</td>
                        <td></td>
                        <td>业务员：{$billInfo['bizUserName']}</td>
                    </tr>
                    <tr>
                        <td colspan="3">备注：{$billInfo['billMemo']}</td>
                    </tr>
                </table>
                <table class="order-info">
                    <thead>
                    <tr>
                        <th class="w40">序号</th>
                        <th class="tl">商品编码</th>
                        <th class="tl">商品名称</th>
                        <th class="tl">规格型号</th>
                        <th class="w70">采购数量</th>
                        <th class="w70 tl">单位</th>
                        <th class="w70 tl">采购单价</th>
                        <th class="w70 tl">采购金额</th>
                        <th class="w80 tl">备注</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="billInfo.items" id="item">
                        <tr>
                            <td>{$i}</td>
                            <td class="tl w100">{$item['goodsCode']}</td>
                            <td class="tl">{$item['goodsName']}</td>
                            <td class="tl">{$item['goodsSpec']}</td>
                            <td>{$item['goodsCount']}</td>
                            <td class="tl">{$item['unitName']}</td>
                            <td class="tl">{$item['goodsPrice']}</td>
                            <td class="tl">{$item['goodsMoney']}</td>
                            <td class="tl">{$item['memo']}</td>
                        </tr>
                    </volist>
                    </tbody>
                    <tfoot>
                    <tr>
                        <th colspan="10"><span></span><span></span><span style="text-align: right">采购数量合计：{$sum_goods_count}</span><span style="text-align: right">采购金额合计：&yen;{$sum_print}</span>
                        </th>
                    </tr>
                    </tfoot>
                </table>
                <div style="line-height: 18px;margin-top: 5px;">
                        {$_POST['remark']}
                </div>
                <div class="sign">
                    <div class="sign_left">深圳前海牛魔王科技有限公司<hr />签字盖章</div>
                    <div class="sign_right">{$billInfo['supplierName']} <hr />签字盖章</div>
                </div>

                <!--                        <div class="explain">-->
                <!--              padding-bottom: 80px; border-bottom: 1px solid #000000;              </div>-->
                <!--                        <div class="tc page">第1页/共1页</div>-->
            </div>

        </div>
    </div>
    </div>
</body>

</html>